<?php

   require("../../configuracion.php");
   $idSysSection = $sectionCampSMS;
   $path = "../../";
   require("../../application-top.php");
   $idSegmento = $_GET['idSegmento'];
   if ($idSegmento <> "") $st_QueryString = "?idSegmento=" . $idSegmento;
   else  $st_QueryString = "";

?>
<html>
<head>
  <title><?= $instanciaECRM ?></title>
  <link rel="stylesheet" href="../../styles/style.css" type="text/css">
  <script type="text/javascript">
 
  function abrepagina()
  {
    if (document.forms[0].tipoSMS[0].checked==true)
      {
        parent.content.window.location='sms_newunico.php<?= $st_QueryString ?>';
        //window.open('sms-nuevoa.php','content');
      }else
    if (document.forms[0].tipoSMS[1].checked==true)
      {
        parent.content.window.location='sms_newrepetitivo.php<?= $st_QueryString ?>';
        //window.open('sms-nuevoc.php','content');
      }else
    {alert('Seleccione el tipo de correo que desea crear')}
  }
  </script>
</head>
<body leftmargin="0" class="mainBackground" topmargin="0" marginwidth="0" marginheight="0">
<table width="100" border="0" cellpadding="0" cellspacing="0">
  <tr><td><img src="../../images/headerBar.gif" width="590" height="60" alt=""></td></tr>
  <tr>
    <td><table width="800" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#FFFFFF" valign="top" height="400">
<form name="forma">
<table border="0" cellpadding="5" cellspacing="0" width="750">
  <tr><td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr><td colspan="2"><img src="images/spacer.gif" height="10" width="1" alt=""></td></tr><tr><td><strong class="pageTitle">Campa&ntilde;as SMS</strong><br><strong class="pageSubtitle">Crear campa&ntilde;a SMS</strong></td><td align="right"><a href="http://www.cacto.com/" target="_blank"><img src="../../images/trademarkCacto.gif" alt="Cacto" border="0"></a><br>
<strong class="systemTitle"><?= $instanciaECRM ?></strong><br>Perfil <strong><?= $PerfilUsuario ?></strong></td></tr>
  </table></td></tr>
   <tr><td colspan="2">
        <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
          <tr class="answerCellBG">
            <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
            <td><a href="sms_admin.php" target="content">Regresar</a></td>
          </tr>
        </table>
      </td></tr>
  <tr><td>
    <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
      <tr class="answerCellBG">
        <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
        <td><a href="sms_enviados.php" target="content">Enviadas</a></td>
        <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
        <td><a href="sms_programado.php" target="content">Programaci&oacute;n autom&aacute;tica</a></td>
        <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
        <td><a href="sms_porenviar.php" target="content">Por enviar</a></td>
        <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
        <td class="titleBarTable">Crear nueva campa&ntilde;a</td>
      </tr>
    </table>
  </td></tr>
  <tr>
  <td valign="top" width="100%">
    <table border="0" cellpadding="0" cellspacing="0">
      <tr><td colspan="2">
        <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
          <tr><td colspan="2" class="secTableTitle"><strong>Seleccione el tipo de SMS que desea crear</strong></td></tr>
          <tr class="answerCellBG"><td valign="top" class="conceptCellBG"><input type="radio" name="tipoSMS"></td><td>&Uacute;nico - Este SMS ser&aacute; enviado una sola vez</td></tr>
          <tr class="answerCellBG"><td valign="top" class="conceptCellBG"><input type="radio" name="tipoSMS"></td><td>Repetitivo autom&aacute;tico - Este SMS se programar&aacute; para que de forma autom&aacute;tica sea enviado repetitivamente</td></tr>
        </table>
      </td></tr>
      <tr><td><img src="../../images/spacer.gif" height="10" width="1" alt=""></td></tr>
      <tr><td>
        <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
          <tr class="answerCellBG">
            <td><img src="../../images/icArrowGo.gif" height="13" width="13" alt=""></td>
            <td><a href="javascript:abrepagina();" target="content">Continuar</a></td>


            <td><img src='../../images/icArrowGo.gif' height='13' width='13' alt=''></td>
            <td><a href='sms_enviaunico_v1.php' target='content'>Envio &Uacute;nico</a></td>


          </tr>
        </table>
      </td></tr>
    </table>
  </td>
  </tr>
</table>
          </td>

        </tr>
      </table></td>
  </tr>
</table>
</form>
<br>
<br>
<br>
<table width="750" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td align="right"><span class="copyright"><?= $copyright ?></span></td>
  </tr>
</table>
</body></html>
